﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FileList.aspx.cs" Inherits="Manage_Modle_Template_FileList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    	<link href="../../css/Democss.css" rel="stylesheet" type="text/css" />
	<link href="../../css/mainFrom.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../../js/common.js"></script>
<style type="text/css">
A{
	COLOR: #333333;TEXT-DECORATION:underline
}
A:hover {
	COLOR: #ff6600; TEXT-DECORATION: underline
}
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <div id="incontent">
         
      <div class="clear"></div>
      <div class="contable">
        <div class="con-ico">
          <div class="con-fl">当前位置：模板管理</div>
          <div class="con-fr">
            <img src="../../images/img-fontid.gif" title="本页技术支持编号" alt="" />010500
          </div>
        </div>
        <div class="clear"></div>
        <div class="hr"></div>
        <div class="imgadnfont">
          <div class="float">
            <img src="../../images/UserloginLog.gif" alt="" />
          </div>
          <div style="line-height: 20px;">
            可以通过此功能来管理前台的显示风格。
          </div>
        </div>
        <div class="clear"></div>
        <div id="UpdatePanel1">
                  <div class="commbox">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="height: 17px" align="center">
                        <input id="Button1" onclick="CreateFolderjs()" class="button" type="button" value="新建目录" />
                        &nbsp; &nbsp; &nbsp; &nbsp;
                        <input id="Button2" onclick="AddFilejs()" class="button" type="button" value="新建文件" />
                        &nbsp; &nbsp; &nbsp; &nbsp;
                        <asp:Button ID="BtnDelAll" runat="server" CssClass="button" OnClick="BtnDelAll_Click" OnClientClick="return checkdel(document.form1.CheckKeyId);" Text="批量删除" />
                        &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                        <asp:Button ID="BtnBatchCreate" runat="server" CssClass="button"  OnClientClick="return checkdel(document.form1.CheckKeyId);" Text="批量生成" OnClick="BtnBatchCreate_Click" />
                        &nbsp;
                    </td>
                </tr>
                </table> 
            </div>
               <fieldset >
            <legend>文件列表管理</legend>
         <div class="commbox2" style="margin-bottom:20px;">
                    当前路径:<asp:Literal ID="LiteralCurrPath" runat="server"></asp:Literal>&nbsp;&nbsp;&nbsp;&nbsp;目录数:<asp:Label ID="LabFolderCount" runat="server" Text="Label"></asp:Label>
             &nbsp;&nbsp;&nbsp;&nbsp;文件数:<asp:Label ID="labFileCount" runat="server" Text="Label"></asp:Label>
          </div>
                
          <table class="content-table" cellspacing="0" cellpadding="0" rules="rows" bordercolor="White" border="0" id="LogList" style="border-color:White;border-width:0px;border-style:Solid;font-size:X-Small;width:100%;border-collapse:collapse;">
            <tr>
              <td class="tdblodth" nowrap="nowrap" align="left"><asp:CheckBox ID="CheckAll" runat="server" onclick="selectAll(this.form.CheckKeyId,this.checked);" Text="" />文件名/文件夹名</td>
              <td class="tdblodth" nowrap="nowrap" width="60px" align="left">大小</td>
              <td class="tdblodth" nowrap="nowrap" width="100px" align="left">文件类型</td>
              <td class="tdblodth" nowrap="nowrap"  width="130px" align="left"><a href="FileList.aspx<%=FileUpdateOrderStr%>">修改时间</a></td>
              <td class="tdblodthnone" width="120px" nowrap="nowrap" align="center">操作选项</td>
            </tr>
            <asp:Literal ID="literalBackHtml" runat="server"></asp:Literal><asp:Repeater ID="RepFileList" runat="server">
              <ItemTemplate>
                <tr class="datalisttr" bgcolor="#FFFFFF" onmouseover="OverColor(this)"  onmouseout="OutColor(this)">
                 <td  align="left"><input name="CheckKeyId" id="CheckKeyId" value='<%# Eval("FileName")%>' type="checkbox" /><%#Eval("FileFormatName")%></td>
                  <td align="left"><%#Eval("FileSize")%></td>
                  <td  align="left"><%#Eval("FileType")%></td>
                  <td  align="left"><%#Eval("FileModifyDate")%></td>
                  <td  align="right"><%#Eval("FileOperateStr")%></td>
                </tr>
              </ItemTemplate>
              <AlternatingItemTemplate>
                 <tr class="datalisttr" bgcolor="#F8F8F8" onmouseover="OverColor(this)"  onmouseout="OutColor(this)">
                   <td  align="left"><input name="CheckKeyId" id="CheckKeyId" value='<%# Eval("FileName")%>' type="checkbox" /><%#Eval("FileFormatName")%></td>
                  <td align="left"><%#Eval("FileSize")%></td>
                  <td  align="left"><%#Eval("FileType")%></td>
                  <td  align="left"><%#Eval("FileModifyDate")%></td>
                  <td  align="right"><%#Eval("FileOperateStr")%></td>
            </tr>   
              </AlternatingItemTemplate>
            </asp:Repeater>
          </table>
           </fieldset> 
        </div>
      </div>
    </div>
    </div>
        <asp:HiddenField ID="HiddCurFilePath" runat="server" />
    </form>
</body>
</html>
    <script language="javascript" type="text/javascript">
        parent.$("IFRAME_windowTab_<%=ROLESTR%><%=strPermissionID %>").style.height = document.body.scrollHeight;
    function CreateFolderjs()
    {
    var url=<%=CurrFilePathStr %>;
    try
    {
      top.AlertMyMsg("Dcms系统提示信息",3,"750","250",url,window.location,"top.msg_close_tmp_biyuan(0)");
    }
    catch(e)
    {
     alert(e);
    }
  }
   function AddFilejs()
    {
    var url=<%=AddFilePath %>;
     top.AlertMyMsg("Dcms系统提示信息",3,"750","475",url,window.location,"top.msg_close_tmp_biyuan(0)");
    }
    </script>
